﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/MasterPages/Plantilla_Cero.Master" AutoEventWireup="true" CodeBehind="ConsultaVuelos.aspx.cs" Inherits="ProyectoVuelos.Presentacion.Vista.ConsultaVuelos" %>


<asp:Content ID="Content1" ContentPlaceHolderID="Sideright_Login" Runat="Server">
    <script type="text/javascript">
    $(function () {
        $("#datepicker").datepicker();
    });
    </script>

     <script type="text/javascript">
         $(function () {

             var pickerOpts = { dateFormat: "yy/mm/dd" };

             $("#<%= fechaS.ClientID  %>").datepicker(pickerOpts);
             $("#<%= fechaL.ClientID  %>").datepicker(pickerOpts);

         });

    </script>
    <div class="topround-bg1">
              
</div> 
<div class="midround-bg1">
              <div style="padding: 10px 0px 10px 54px;">
                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   <asp:Label ID="Label6" runat="server" 
                      style="font-family: Arial; font-size: xx-large; font-weight: 700; color: #CC0000; background-color: #FFFFFF" 
                      Text="Ingreso">
                   </asp:Label>
              </div>
              <div style="padding: 10px 0px 10px 54px;">
                  <asp:Label ID="Label7" runat="server" Height="25px" 
                      style="font-family: Arial; font-size: medium" Text="Cuenta" 
                      Font-Size="Small"></asp:Label>
                      &nbsp;<asp:TextBox ID="TextBox6" runat="server" Height="22px" Width="102px">
                  </asp:TextBox>
              </div>
              <div style="padding: 10px 0px 10px 54px;">
                  <asp:Label ID="Label8" runat="server" Height="25px" 
                      style="font-family: Arial; font-size: medium" Text="Clave" 
                      Font-Size="Small"></asp:Label>
                  &nbsp;&nbsp;&nbsp;
                  <asp:TextBox ID="TextBox7" runat="server" Height="22px" Width="104px"></asp:TextBox>
              </div>
              <div style="padding: 10px 0px 10px 54px;">

              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" 
                      ForeColor="#000099">Clave extraviada
                 </asp:HyperLink>
              </div>
              <div style="padding: 10px 0px 10px 54px;">
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                 <asp:Button ID="Button4" runat="server" Text="Ingresar" Width="97px" 
                      />
              </div>
        
</div>
 <div class="botround-bg1">&nbsp;
</div>


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MenuTittleFour" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadTittleOne" runat="server">
    
    <asp:Label ID="Label11" runat="server" 
                      style="font-family: Arial; font-size: xx-large; font-weight: 700; color: #CC0000; background-color: #FFFFFF" 
                      Text="Buscar Vuelos"></asp:Label>
    
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SearchEngine" runat="server">
    <div style="padding: 10px 0px 10px 54px;">

           <table border="0" cellpadding="0" cellspacing="5px">
           <tr>
                   <td style="width: 127px">
             <asp:Label ID="Label1" runat="server" 
                      style="font-family: Arial, Helvetica, sans-serif; font-size: small;" 
                      Text="Fecha de Salida" Height="24px" Width="128px" CssClass="style3"></asp:Label>
                   </td>
                   <td>
                  <asp:TextBox ID="fechaS" runat="server" Width="134px" Height="20px"></asp:TextBox>
                   </td>
                   <td style="width: 127px">
             <asp:Label ID="etiqueta_ciudad5" runat="server" 
                      style="font-family: Arial, Helvetica, sans-serif; font-size: small;" 
                      Text="Fecha de Llegada" Height="24px" CssClass="style3"></asp:Label>
                   </td>
                   <td>
                       <asp:TextBox ID="fechaL" runat="server" Width="134px" Height="20px"></asp:TextBox></td>
           </tr>
               <tr>
                   <td style="width: 127px">
                       <asp:Label ID="Label9" runat="server" Text="Ciudad de Origen" CssClass="style3" 
                           style="font-family: Arial, Helvetica, sans-serif; font-size: small;"></asp:Label>
                   </td>
                   <td>
                       <asp:DropDownList ID="origen" runat="server" DataSourceID="SqlDataSource1" DataTextField = "nombre" DataValueField = "nombre">
                       </asp:DropDownList>
                       <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                           ConnectionString="<%$ ConnectionStrings:vuelosConnectionString %>" 
                           ProviderName="<%$ ConnectionStrings:vuelosConnectionString.ProviderName %>" 
                           SelectCommand="SELECT nombre FROM lugar WHERE tipo = 'ciudad'">
                             <SelectParameters>
                               <asp:Parameter DefaultValue="Ciudad" Name="tipo" Type="String" />
                           </SelectParameters>
                           </asp:SqlDataSource>
                   </td>
                    <td style="width: 127px">
                       <asp:Label ID="Label10" runat="server" Text="Ciudad de Destino" 
                           CssClass="style3" 
                           style="font-family: Arial, Helvetica, sans-serif; font-size: small;"></asp:Label>
                   </td>
                   <td>
                       <asp:DropDownList ID="destino" runat="server" 
                           DataSourceID="SqlDataSource2" DataTextField = "nombre" DataValueField = "nombre">
                       </asp:DropDownList>
                       <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                           ConnectionString="<%$ ConnectionStrings:vuelosConnectionString %>" 
                           ProviderName="<%$ ConnectionStrings:vuelosConnectionString.ProviderName %>" 
                           SelectCommand="SELECT nombre FROM lugar WHERE tipo = 'Ciudad' ">
                           <SelectParameters>
                               <asp:Parameter DefaultValue="Ciudad" Name="tipo" Type="String" />
                           </SelectParameters>
                       </asp:SqlDataSource>
                   </td>
               </tr>
                  
            
               <tr>
                   <td style="width: 127px">
                       &nbsp;</td>
                   <td>
                   <asp:CheckBox ID="soloIda" runat="server" 
                       style="font-family: Arial, Helvetica, sans-serif; font-size: 8pt" 
                       Text="Solo ida" />
                   </td>
                 
               </tr>
               <tr>
                   <td style="width: 127px">
                       &nbsp;</td>
                   <td>
                       <asp:ImageButton ID="ImageButton1" runat="server" Height="44px" 
                           ImageUrl="C:\Users\pedro\Desktop\Desarrollo III\ agencia-de-viajes-2013 --username juan.de.jesus.mirelles@gmail.com\ProyectoVuelos\Presentacion\Imagenes\Buscar.png" Width="53px" 
                           onclick="ImageButton1_Click" />
                 
                   </td>
                   
               </tr>
           </table>
           <a href="../Vuelos/Resultados.aspx">Comprar</a>
           <br />
           <br />

       </div>
       <div>

           <ul class="readmore-1">
              <li>-----------------------------------------</li>
           </ul>
        </div>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Search" runat="server">
    <table style="width: 100%; margin-left:50px;">       
           
    <tr>
        <td>
        </td>
        <td class="style1" align="center" style="width: 591px">
        </td>
        <td style="width: 215px">
            &nbsp;
        </td>
    </tr>

    <tr>
        <td class="style19" align="center">
            &nbsp;
        </td>

        <td class="style1" align="center" style="width: 591px">
            <br />
             <asp:GridView ID="gridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" align="center" Height="73px" Width="656px"  OnRowCommand="GridView1_RowCommand">
                        <AlternatingRowStyle BackColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                         <Columns>
                         <asp:ButtonField HeaderText ="Ver Detalle" CommandName="Consultar" ButtonType="image" ImageUrl="~/Presentacion/Imagenes/Buscar.png"  />

                        </Columns>
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
        </td>

    </tr>

    </table>
    <table style="width: 100%; margin-left:50px;">       
           
    <tr>
        <td>
        </td>
        <td class="style1" align="center" style="width: 591px">
        </td>
        <td style="width: 215px">
            &nbsp;
        </td>
    </tr>

    <tr>
        <td class="style19" align="center">
            &nbsp;
        </td>

        <td class="style1" align="center" style="width: 591px">
            <br />
             <asp:GridView ID="gridView2" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" align="center" Height="73px" Width="656px"  OnRowCommand="GridView2_RowCommand">
                        <AlternatingRowStyle BackColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                         <Columns>
                         <asp:ButtonField HeaderText ="Ver Detalle" CommandName="Consultar" ButtonType="image" ImageUrl="~/Presentacion/Imagenes/Buscar.png"  />

                        </Columns>
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
        </td>

    </tr>

    </table>
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="HeadTittleTwo" runat="server">
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="HeadTittleThree" runat="server">
</asp:Content>

<asp:Content ID="Content8" ContentPlaceHolderID="HeadTittleFour" runat="server">
</asp:Content>

<asp:Content ID="Content9" ContentPlaceHolderID="HeadTittleFive" runat="server">
</asp:Content>

<asp:Content ID="Content10" ContentPlaceHolderID="HeadTittleSix" runat="server">
</asp:Content>

<asp:Content ID="Content11" ContentPlaceHolderID="Sideright_MenuOne" runat="server">
</asp:Content>



<asp:Content ID="Content12" ContentPlaceHolderID="Sideright_MenuTwo" runat="server">
</asp:Content>

<asp:Content ID="Content13" ContentPlaceHolderID="Sideright_MenuThree" runat="server">
</asp:Content>
